//! regression test for <https://github.com/rust-lang/rust/issues/3680>

fn main() {
    match None {
        //~^ NOTE this expression has type `Option<_>`
        Err(_) => (),
        //~^ ERROR mismatched types
        //~| NOTE expected enum `Option<_>`
        //~| NOTE found enum `Result<_, _>`
        //~| NOTE expected `Option<_>`, found `Result<_, _>`
    }
}
